<template>
  <div class="card-wrap flex-column justify-end card-padding">
    <el-form :model="form" ref="cancelTheChangeSupplierProgress" label-width="100px">
      <div class="card-title-wrap">
        <span>更换供应商申请审批进度</span>
        <span></span>
      </div>
      <div>
        <FlowRecordTable v-if="form.id" :id="form.id" />
      </div>
    </el-form>
  </div>
</template>

<script>
import FlowRecordTable from "../components/FlowRecordTable.vue"
export default {
  // 撤销收车
  name: 'cancelTheChangeSupplierProgress',
  components: {
    FlowRecordTable
  },
  props: {
    value: {
      type: Object,
      default: {},
    },
    state: {
      type: String,
      default: '',
    },
  },
  computed: {
    form: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
    type() {
      let status
      switch (this.state) {
        case 'write':
          status = 'edit'
          break
        case 'disabled':
          status = 'detail'
          break
        case 'readonly':
          status = 'detail'
          break
        case 'detail':
          status = 'detail'
          break
        case 'edit':
          status = 'edit'
        case 'add':
          status = 'add'
          break
      }
      return status
    },
  },
  data() {
    return {
    };
  },
  created() {
  },
  methods: {

  },
};
</script>
<style lang="scss" scoped>
</style>
